/**
 * 
 */
package org.mhz.ootw.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.Immutable;

/**
 * @author Mahan
 *
 * Readable content entity
 */
@Entity
@Immutable
public class ReadableContent implements Serializable
{
    private static final long serialVersionUID = 1L;
    
    @Id
    @Column(name = "id")
    @GeneratedValue    
    private Integer mId;
    
    @Column(name = "content")
    private String mContent;

    /**
     * @return Returns the id.
     */
    public Integer getId()
    {
        return mId;
    }

    /**
     * @param aId The id to set.
     */
    public void setId(final Integer aId)
    {
        mId = aId;
    }

    /**
     * @return Returns the content.
     */
    public String getContent()
    {
        return mContent;
    }

    /**
     * @param aContent The content to set.
     */
    public void setContent(final String aContent)
    {
        mContent = aContent;
    }

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() 
	{
		return "ReadableContent [Id=" + mId + "]";
	}        
}
